package model

import "time"

type ReviewLike struct {
	Id        int       `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	ReviewId  int       `gorm:"column:review_id;type:bigint(20) UNSIGNED;comment:评论id;not null;" json:"review_id"`                        // 评论id
	Deleted   int       `gorm:"column:deleted;type:tinyint(3) UNSIGNED;comment:是否删除：0-正常，1-删除;not null;default:0;" json:"deleted"`        // 是否删除：0-正常，1-删除
	CreatedAt time.Time `gorm:"column:created_at;type:datetime(3);comment:创建时间;not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"` // 创建时间
}

func (ReviewLike) TableName() string {
	return "review_like"
}
